@echo off
ssh Administrator@%1 "rd /s/q jmeterEnv"
ssh Administrator@%1 "mkdir jmeterEnv\jmeter"
scp -P 22 %~dp0JDK1.8.zip  Administrator@%1:/C:/Users/Administrator/jmeterEnv/
scp -P 22 %~dp0apache-jmeter-5.1.1_Slave.zip  Administrator@%1:/C:/Users/Administrator/jmeterEnv/jmeter/
scp -P 22 %~dp0add_path.bat  administrator@%1:/C:/Users/administrator/
scp -P 22 %~dp0hide_jmeter_server.bat  Administrator@%1:/C:/Users/Administrator/
ssh Administrator@%1 "cd C:/Users/Administrator/jmeterEnv/ && tar -zxvf JDK1.8.zip"
ssh Administrator@%1 "cd C:/Users/Administrator/jmeterEnv/jmeter/ && tar -zxvf apache-jmeter-5.1.1_Slave.zip"
ssh Administrator@%1 "cmd /c add_path.bat"
)



